package com.yjz.springcloudconsumer01.remote;

import com.yjz.springcloudconsumer01.remote.hystrix.HelloRemoteHyStrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Desc
 * @Author: jinzhong.yuan
 * @Date: 2019/2/15 15:40
 */
@FeignClient(name = "service-provider01",fallback= HelloRemoteHyStrix.class)
public interface HelloRemoteInterface {

    @RequestMapping(value = "/hello")
    public String hello(@RequestParam(value = "name") String name);

}
